'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 排行
 * @author sundbcn@gmail.com (sun debing)
 */

var rankLevel = require('./rank/level');
var rankCup = require('./rank/cup');
var rankSurvive = require('./rank/survive');
var rankBoss = require('./rank/boss');
var rankFightPower = require('./rank/fightPower.js');
var rankHonor = require('./rank/honor.js');
var rankArena = require('./rank/arena.js');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 等级排行
 */
Handler.prototype.level = function (msg, session, next) {
    rankLevel(msg, session, next);
};

/**
 * 奖杯排行
 */
Handler.prototype.cup = function (msg, session, next) {
    rankCup(msg, session, next);
};

/**
 * boss排行 
 */
Handler.prototype.boss = function (msg, session, next) {
    rankBoss(msg, session, next);
};

/**
 * 生存排行
 */
Handler.prototype.survive = function (msg, session, next) {
    rankSurvive(msg, session, next);
};

/**
 * 战力排行
 */
Handler.prototype.fightPower = function (msg, session, next) {
    rankFightPower(msg, session, next);
};

/**
 * 军功排行
 */
Handler.prototype.honor = function (msg, session, next) {
    rankHonor(msg, session, next);
};

/**
 * 竞技场排行
 */
Handler.prototype.arena = function (msg, session, next) {
    rankArena(msg, session, next);
};
